<?php use_helper('Javascript') ?>
<?php $tribunal = $form->getObject() ?>
<?php echo form_remote_tag(array(
    'update'   	=> 'acciones_tribunal',
    'url'      	=> 'administracion/updatetribunal'.(!$tribunal->isNew() ? '?id='.$tribunal->getId() : ''),
	'loading'	=> visual_effect('appear','loading'),
	'complete'	=> visual_effect('fade','loading'),
))?>
  <table>
    <tfoot>
      <tr>
        <td colspan="2">
          	<?php echo link_to_remote('Cancelar', array(
          		'update'	=> 'modulo',
          		'url'		=> 'administracion/indextribunal',
          		'loading'	=> visual_effect('appear','loading', array('duration' => 0)),
				'complete'	=> visual_effect('fade','loading', array('duration' => 0)), )); ?>
          <input type="submit" value="Guardar" />
        </td>
      </tr>
    </tfoot>
    <tbody>
      <?php echo $form->renderGlobalErrors() ?>
      <tr>
        <th><label for="tribunal_ciudad">Ciudad</label></th>
        <td>
          <?php echo $form['ciudad']->renderError() ?>
          <?php echo $form['ciudad'] ?>
        </td>
      </tr>
      <tr>
        <th><label for="tribunal_nombre">Nombre</label></th>
        <td>
          <?php echo $form['nombre']->renderError() ?>
          <?php echo $form['nombre'] ?>
        </td>
      </tr>
      <tr>
        <th><label for="tribunal_comuna">Comuna</label></th>
        <td>
          <?php echo $form['comuna']->renderError() ?>
          <?php echo $form['comuna'] ?>

        <?php echo $form['id'] ?>
        </td>
      </tr>
    </tbody>
  </table>
</form>
